luci-app-unbound: fix logic error
authorPaul Donald <[email protected]>
Thu, 18 Sep 2025 23:35:15 +0000 (01:35 +0200)
committerPaul Donald <[email protected]>
Thu, 18 Sep 2025 23:35:15 +0000 (01:35 +0200)
Signed-off-by: Paul Donald <[email protected]>
applications/luci-app-unbound/htdocs/luci-static/resources/view/unbound/configure.js

index 06786f24b00d88f3aa7096910ca8d9e0dfed9e23..fab8ff86636d2f4cb9913959d3612c79d1352fcc 100644 (file)
@@ -37,7 +37,7 @@ return view.extend({
                const dhcpLink = uci.get('unbound', 'ub_main', 'dhcp_link');
                const leasetrig = uci.get('dhcp', 'odhcpd', 'leasetrigger') || 'undefined';
 
-               if (manual === '0' && dhcpLink === 'odhcpd' && leasetrig === '/usr/lib/unbound/odhcpd.sh') {
+               if (manual === '0' && dhcpLink === 'odhcpd' && leasetrig !== '/usr/lib/unbound/odhcpd.sh') {
                        ui.addTimeLimitedNotification(null, E('p', _('Note: local DNS is configured to look at odhpcd, but odhpcd UCI lease trigger is incorrectly set:') +
                                "dhcp.odhcpd.leasetrigger='" + leasetrig + "'"), 15000, 'note');
                }